﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品信息实体
    /// </summary>
    public class GsSpuInfoModel
    {
        /// <summary>
        /// 商品Id码
        /// </summary>
        public long spuId { get; set; }
        /// <summary>
        /// 启用状态（0失效 1 启用 2 淘汰）
        /// </summary>
        public int activated { get; set; }

        /// <summary>
        /// 商品状态（0下架 1上架）
        /// </summary>
        public int status { get; set; } = 1;

        /// <summary>
        /// 允许前台改价 0 是 1 否
        /// </summary>
        public bool? chgPrice { get; set; }
        /// <summary>
        /// 逻辑删除标记 0：未删除 1：已删除
        /// </summary>
        public bool? delFlag { get; set; }
        /// <summary>
        /// 允许前台折扣0 是 1 否
        /// </summary>
        public bool disItem { get; set; }
        /// <summary>
        /// 是否允许前台赠送 0 是 1 否
        /// </summary>
        public int? gived { get; set; }
        /// <summary>
        /// 商品图片
        /// </summary>
        public string imgUrl { get; set; }

        /// <summary>
        /// 是否积分0是1否
        /// </summary>
        public int? integral { get; set; }
        
        public string isAsc { get; set; }
        /// <summary>
        /// 分类Iｄ
        /// </summary>
        public long itemSortId { get; set; }
        /// <summary>
        /// 最高售价
        /// </summary>
        public decimal maxPrice { get; set; }
        /// <summary>
        /// 最低售价
        /// </summary>
        public decimal minPrice { get; set; }
        /// <summary>
        /// 拼音码
        /// </summary>
        public string py { get; set; }

        /// <summary>
        /// 商品条码
        /// </summary>
        public string spuBarcode { get; set; }
        /// <summary>
        /// 商品代码
        /// </summary>
        public string spuCode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string spuName { get; set; }
        /// <summary>
        /// 商品类型 1 标准商品 2 组合商品 3 成分商品 4 非库存商品  5 制单组合商品 6 虚拟商品
        /// </summary>
        public int spuTypeId { get; set; }

        /// <summary>
        /// 0标准 1称重 2计件
        /// </summary>
        public int stand { get; set; }
        /// <summary>
        /// 库存单位换算率
        /// </summary>
        public decimal stkConverRate { get; set; }
        /// <summary>
        /// 库存单位
        /// </summary>
        public long stkUomId { get; set; }
        /// <summary>
        /// 基本单位
        /// </summary>
        public long uomId { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        public string place { get; set; }

        /// <summary>
        /// 有效天数
        /// </summary>
        public int periodDay { get; set; }
        /// <summary>
        /// 图片素材ID
        /// </summary>
        public long? imageId { get; set; }

        /// <summary>
        /// 商品图片ID
        /// </summary>
        public long? spuImageId { get; set; }
    }
}
